<!DOCTYPE html>
<html>
	{include file="head.html"}
	<link href="{$skins}css/news.css" rel="stylesheet" />
	<body>
		<div class="topfixed">
	       <div class="t_left"><a href="/index.php" class="goBack"><i class="back"></i></a></div>
	       <div class="t_main">我的新鲜事</div>
	   	   <div class="t_right"><a href="/index.php?m=news&a=add" class="link"  >发布</a></div>
	    </div>
	    <div class="paddingheight"></div>
	    {include file="news/news_head.html"}
	    <div class="tabs-border i3">
	    	<a href="/index.php?m=news" class="item">主页</a>
	    	<a href="/index.php?m=news&a=school" class="item">校园</a>
	    	<a href="/index.php?m=news&a=my" class="item  active">我的</a>
	    </div>
	    <div class="main-body">
	  
	    	<div class="newslist">
	    		{foreach item=c from=$data}
	    		<div class="item">
	    			<div class="con">{$c.content}</div>
	    			{if $c.fromid}
	    					<div class="frombox">
	    						<div class="con">@{$c[from_news].nickname}: {$c[from_news].content}</div>
	    						<div class="pics js-thumb-item">
			    				{foreach item=p from=$c[from_news].imgsdata}
			    				<div class="img ">
			    					<img class="js-thumb" v="{$p|images_site}" src="{$p|images_site}.100x100.jpg">
			    				</div>
			    				{/foreach}
			    				<div class="clearfix"></div>
			    			</div>
	    					</div>
	    					{/if}
	    			<div class="pics js-thumb-item">
	    				{foreach item=p from=$c.imgsdata}
	    				<div class="img ">
	    					<img class="js-thumb" v="{$p|images_site}" src="{$p|images_site}.100x100.jpg">
	    				</div>
	    				{/foreach}
	    				<div class="clearfix"></div>
	    			</div>
	    			<div class="tools">
	    				<span class="time">{$c.dateline|timeago}</span>
	    				<a class="delete js-news-delete" href="javascript:;" url="/index.php?m=news&a=delete&ajax=1&newsid={$c.newsid}">删除</a>
	    			</div>
	    			<div class="newslist-cmbox {if $c.zans || $c.cms}active{/if}">
								<div class="zts {if $c.zans}active{/if}" id="zts{$c.newsid}">
									<i class="iconfont icon-love"></i> {foreach item=zan from=$c.zans}
									<span id="news-zan-{$zan.id}">{$zan.nickname}</span> {/foreach}
								</div>
								<div class="cms {if $c.cms}active{/if}" id="cms{$c.newsid}">
									{foreach item=cm from=$c.cms}
									<div class="cm" id="news-cm-{$cm.id}">
										<span class="cm-nick">{$cm.nickname}</span>: {$cm.content}
									</div>
									{/foreach}
								</div>
							</div>
	    		</div>
	    		{/foreach}
	    	</div>
	    	<div id="loadmore" class="pullup">加载更多</div>
	    </div>
	    {include file="footer.html"}
   		{include file="botnav.html"}
   		{include file="inc/js_thumb.html"}
   		 
	</body>
</html>
